<template>
  <div class="">
    1.冒泡排序  bubbleSort <br>
    2.选择排序  selectionSort <br>
  </div>
</template>

<script>
export default {
    components: {
        
    },
    data() {
        return {
            
        }
    },
    mounted() {
        this.bubbleSort()
        this.selectionSort()
    },
    methods: {
        bubbleSort() {
            // let arr = [99,232,21,23,25,67,45,77,88]
            // let a = this.sort.bubbleSort(arr)
            // console.log(a);
        },
        selectionSort() {
            let arr = [99,232,21,23,25,67,45,77,88]
            let a = this.sort.selectionSort(arr)
            console.log(a);
        }
    }
}
</script>

<style lang="scss" scoped>

</style>